package com.binarycube.webserver.config;

import com.binarycube.webserver.datasource.Parameter.Type;

public class ParameterConfig {
	String name;
	String defaultValue;
	Type type;
	
	
	
	
	/**
	 * Configuration for the parameters to be passed to a datasource during a query.
	 * Default setting is for the parameter to be optional, and of type STRING
	 */
	public ParameterConfig(){
		type = Type.STRING;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDefault() {
		return defaultValue;
	}
	public void setDefault(String defaultValue) {
		this.defaultValue = defaultValue;
	}

		
	public void setType(String type) {
		this.type = Type.valueOf(type);
	}
	
	public Type getType(){
		return type;
	}
	
}
